﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace StringToUnicode
{
    class StringToUnicode
    {
        public static void GetLiterals(string input)
        {
            for (int i = 0; i < input.Length; i++)
            {
                Console.WriteLine("{0} \\x{1:####} {2}", input[i], (int)input[i], (int)input[i]);
            }
        }
        static void Main(string[] args)
        {
            string input = "Hi!";

            GetLiterals(input);
        }
    }
}
